package com.henry.controller;

import com.henry.service.UserService;
import com.henry.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-09-01 11:03
 */
@RestController
@RequestMapping("user")
public class UserController {
    /*
    属性列表
    */
    @Autowired
    private UserService userService;

    @RequestMapping("kjye")
    public R update(@RequestParam("uid") Integer uid,
                    @RequestParam("money") Double money){

        userService.kjye(uid,money);
        return R.ok("");
    }



}
